package com.example.authorization_server.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import static com.example.common.constant.Constant.*;


/**
 * @author 罗俊华
 * @date 2021/11/9 - 4:04 下午
 */
@Controller

public class LoginController {

    @GetMapping({LOGIN_PAGE,"/"})
    public ModelAndView login(){
        ModelAndView modelAndView = new ModelAndView("login");
        modelAndView.addObject("loginProcessingUrlAddress",LOGIN_PROCESSING_URL);
        return modelAndView;
    }
}
